<?xml version="1.0" encoding="UTF-8" ?> 
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:p="http://primefaces.org/ui"
    xmlns:c="http://java.sun.com/jstl/core" >

		 <p:dialog id="modalAlteracaoDados" 
		   		closable="false"
		   		header="Alteração dos Dados" 
		   		widgetVar="alteracaoDados" 
		   		modal="true" 
		   		resizable="false"
		   		width="400"
		   		draggable="false" > 
			<h:form id="formAlteracaoDados">
				
				<div class="acoesBotoesEsquerda">
				
					<ui:decorate template="/resources/templates/edit.xhtml">
						<ui:define name="label">
							Senha atual:
						</ui:define>
			
						<h:inputSecret id="inSecSenha" value="#{userBean.senhaAtual}" size="40" />
					</ui:decorate>
										
					<ui:decorate template="/resources/templates/edit.xhtml">
						<ui:define name="label">
							Nova senha:
						</ui:define>
			
						<h:inputSecret id="senhaInput" value="#{userBean.senhaNova}" size="40" />
					</ui:decorate>
	
					<ui:decorate template="/resources/templates/edit.xhtml">
						<ui:define name="label">
							Confirmar senha:
						</ui:define>
			
						<h:inputSecret id="senhaInputConfirm" value="#{userBean.senhaConfirmacao}" size="40" />
					</ui:decorate>
					
					<p:commandButton id="btnConfirmar" 
									value="confirmar"
									ajax="true"
									action="#{userBean.comandoAlterarSenha}"
									oncomplete="alteracaoDados.hide();" />
					
					<p:commandButton id="btnCancelar" 
									value="cancelar" 
									ajax="true"
									onclick="alteracaoDados.hide();" />
									
				</div>
				
			</h:form>
			
		</p:dialog>
		
</ui:composition>